package edu.zut.hb.software.train.ArrangementManager.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.zut.hb.software.base.service.impl.GenericManagerImpl;
import edu.zut.hb.software.train.Arrangement.dao.ArrangementDao;
import edu.zut.hb.software.train.Arrangement.domain.Arrangement;
import edu.zut.hb.software.train.ArrangementManager.service.ArrangementManager;




@Service("arrangementManager")
public class ArrangementManagerImpl extends GenericManagerImpl<Arrangement, Long> implements ArrangementManager {

	
	ArrangementDao arrangementDao;
	
	@Autowired
	public void setArrangementDao(ArrangementDao arrangementDao) {
		this.arrangementDao = arrangementDao;
		this.dao = this.arrangementDao;
	}

	@Override
	public List<Arrangement> getAll() {
		List<Arrangement> all = this.arrangementDao.findAll();
		if (logger.isInfoEnabled()) {
			logger.info("getAll() - List<Arrangement> all={}", all); //$NON-NLS-1$
		}
		return all;
	}
 
}